html {
    //750的设计稿中 1rem=100px; 
    font-size: 100px;
}

html,
body,
#app {
    height: 100%;
    overflow: hidden;
}

#app {
    position: relative;
    margin: 0 auto;
    max-width: 750px;
}

@CW: #FFF;
@CH: rgba(255, 255, 255, .5);
@CG: #31C27C;

.text-clip {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

}

.bg-image,
.bg-mark {
    position: absolute;
    top: -.2rem;
    left: -.2rem;
    z-index: -2;
    width: 120%;
    height: 120%;
}

/*  */
.bg-image {
    position: absolute;
    top: -.2rem;
    left: -.2rem;
    z-index: -2;
    width: 120%;
    height: 120%;
    background: url('../images/myDream.jpg') no-repeat;
    background-size: cover;
    -webkit-filter: blur(7px);
    // 给背景设置模糊度
    filter: blur(7px);
}

.bg-mark {
    z-index: -1;
    background: rgba(0, 0, 0, .5);
}

/* 头部 */
.header-box {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    overflow: hidden;
    padding: .3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .music-btn {
        display: none;
        width: .7rem;
        height: .7rem;
        background: url('../images/music.svg') no-repeat;
        background-size: 100% 100%;

        &.move {
            animation: music-move 1s linear 0s infinite both;
            // animation-name: ;
            // animation-duration: ;
            // animation-delay: ;
            // animation-iteration-count: ;
            // animation-iteration-count: ;
            // animation-fill-mode: ;
        }
    }

    .base-info {
        position: relative;
        width: 6.1rem;

        .pic {
            position: absolute;
            top: 0;
            left: 0;
            width: 1.4rem;
            height: 1.4rem;
        }

        .title,
        .author {
            margin-left: 1.4rem;
            font-size: .7rem;
            color: @CW;
            // text-space"
            // line-height: .7px;
            .text-clip;
        }
        .author {
            font-size: .3rem;
        }
    }
}

@keyframes music-move {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 歌词 */
.main-box {
    box-sizing: border-box;
    height: 100%;
    padding-top: 2rem;
    padding-bottom: 2.12rem;
    overflow: hidden;

    .lyric {
        position: relative;
        height: 100%;
        overflow: hidden;

        .wrapper {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            transform: translateY(0);
            transition: transform .3s;

            p {
                padding: 0 .2rem;
                height: 1rem;
                line-height: 1rem;
                text-align: center;
                font-size: .3rem;
                color: @CH;

                // // 文字截取
                // white-space: nowrap;
                // overflow: hidden;
                .text-clip &.active {
                    color: @CG;
                    transition: color .3s;
                }
            }
        }

    }
}

/* 尾部 */
.footer-box {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.2rem;
    width: 100%;
    height: 2.12rem;
    overflow: hidden;

    .download {
        display: block;
        margin: -.1rem auto;
        width: 4.26rem;
        height: 1rem;
        line-height: 1rem;
        // background-size: 0.8rem  7rem;
        background: url('../images/sprite_play.png') no-repeat #31C27c;
        background-size: .8rem 7rem;
        background-position: .2rem -5.82rem;
        font-size: .36rem;
        color: @CW;
        text-align: center;
        text-indent: .43rem;
        border-radius: .5rem;

        // 颜色加深
        &:active {
            background-color: darken(@CG, 10%);
        }
    }

    .progress {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .already,
    .duration {
        width: 1rem;
        height: .92rem;
        line-height: .92rem;
        text-align: center;
        font-size: .24rem;
        color: @CH;
    }

    .back {
        position: relative;
        flex-grow: 1;
        height: .04rem;
        background: @CH;

        .rate {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0;
            background: @CG;
            transition: width .1s;
        }
    }
}
// 不显示音乐播放器默认样式
#myAudio{
    display: none;
}